<style type="text/css">
    .layui-form-item{
        display: inline-block;
    }
    .submitjiao{
        cursor: pointer;
        background-color: #0C0C0C;
    }
</style>
<div class="page-toolbar">
    <div class="page-filter fr">
        <form class="layui-form layui-form-pane" action="{:url()}" method="get">
            <div class="layui-form-item">
                <label class="layui-form-label">关键字</label>
                <div class="layui-input-inline">
                    <input type="text" name="keyword" value="{:input('get.keyword')}" lay-verify="required" placeholder="输入名称" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="submit" value="搜索" class="layui-form-label submitjiao">
                </div>
            </div>

        </form>
    </div>
    <div class="layui-btn-group fl">
        <a href="{:url('addgift')}" class="layui-btn layui-btn-primary layui-icon layui-icon-add-circle-fine">&nbsp;添加</a>
        <a data-href="{:url('deltaps')}" class="layui-btn layui-btn-primary j-page-btns confirm layui-icon layui-icon-close red">&nbsp;删除</a>
    </div>
</div>
<form id="pageListForm">
    <div class="layui-form">
        <table class="layui-table mt10" lay-even="" lay-skin="row">
            <colgroup>
                <col width="50">
            </colgroup>
            <thead>
            <tr>
                <th><input type="checkbox" lay-skin="primary" lay-filter="allChoose"></th>
                <th>编号</th>
                <th>名称</th>
                <th>图片</th>
                <th>创建时间</th>
                <th>价格</th>
                <th>是否展示</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {php}
            $level = config('hs_system.member_level');
            {/php}
            {volist name="giftlist" id="vo"}
            <tr>
                <td><input type="checkbox" name="ids[]" class="layui-checkbox checkbox-ids" value="{$vo['id']}" lay-skin="primary"></td>
                <td class="font12">{$vo['id']}</td>
                <td class="font12">{$vo['giftname']}</td>
                <td class="font12"><img src="{if condition="$vo['giftpics']"}{$vo['giftpics']}{else /}__ADMIN_IMG__/avatar.png{/if}" width="60" height="60" class="fl"></td>
                <td class="font12">{$vo['create_time']}</td>
                <td class="font12">{$vo['cost']}个红豆币</td>
                <td class="font12"><input type="checkbox"  name="status" value="{$vo.status}" lay-skin="switch" lay-filter="switchStatus" {if condition="$vo['status'] eq 1"}checked="checked"{/if} lay-text="是|否"  data-href="{:url('changegiftstatus',array('id'=>$vo.id))}"></td>
                <td style="width: 150px;">
                    <div class="layui-btn-group">
                        <div class="layui-btn-group">
                            <a href="{:url('updategift?id='.$vo['id'])}" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe642;</i></a>
                            <a data-href="{:url('delgift?table=home_bank&ids='.$vo['id'])}" class="layui-btn layui-btn-primary layui-btn-sm j-tr-del"><i class="layui-icon">&#xe640;</i></a>
                        </div>
                    </div>
                </td>
            </tr>
            {/volist}
            </tbody>
        </table>
        {$giftlist->render()}
    </div>
</form>
{include file="admin@block/layui" /}
<script src="__STATIC__/js/jquery.2.1.4.min.js"></script>
